import request from '@/router/axios'

export function fetchPvmArcInterventionLinkList(query) {
  return request({
    url: '/pvm/arcinterventionlink/page',
    method: 'get',
    params: query
  })
}

export function addPvmArcInterventionLinkObj(obj) {
  return request({
    url: '/pvm/arcinterventionlink',
    method: 'post',
    data: obj
  })
}

export function getPvmArcInterventionLinkObj(id) {
  return request({
    url: '/pvm/arcinterventionlink/' + id,
    method: 'get'
  })
}

//根据optometryId获取五大干预关联信息集合
export function getListByOptometryId(optometryId) {
  return request({
    url: '/pvm/arcinterventionlink/getListByOptometryId/' + optometryId,
    method: 'get'
  })
}

export function delPvmArcInterventionLinkObj(id) {
  return request({
    url: '/pvm/arcinterventionlink/' + id,
    method: 'delete'
  })
}

export function putPvmArcInterventionLinkObj(obj) {
  return request({
    url: '/pvm/arcinterventionlink',
    method: 'put',
    data: obj
  })
}
